package tools;

import java.io.File;

import android.os.Environment;
import android.os.StatFs;
import android.util.Log;

/**
 * @author 作者 E-mail:
 * @date 创建时间：2015-6-9 下午10:48:47
 * @version 1.0
 * @parameter
 * @since
 * @return
 */

/*
 * 
 * File sdDir = null; boolean
 * sdCardExist=Environment.getExternalStorageDirectory
 * ().equals(Environment.MEDIA_MOUNTED); if (sdCardExist){ sdDir =
 * Environment.getExternalStorageDirectory();//获取跟目录 } return sdDir.toString();
 * }
 */
public class SD_Finder {
	public static String GetPaht() {
		File sdDir = null;
		if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {   
		
		String path=Environment.getExternalStorageDirectory().toString();
		return path;
		}else {
			return null;
		}
		
		
	}

}
